var gamejs = require('gamejs');

/*
 * OSTACOLI
 *
 * Un oggetto Sprite caratterizzato da:
 * - Centro, Dimensione [piccolo, medio, grande]
 * - Costo(quanto costa un ostacolo)
 *
 * Lo sprite rappresenterà una griglia deformata.
 */

/**
 * Creates a new obstacle
 *
 * @param {array} center The coordinates as vector [x, y]
 * @param {number} radius The radius of the obstacle
 *
 * @extends Sprite
 * @constructor
 */
var Obstacle = exports.Obstacle = function(center, radius) {
    // esempio d'uso
    // this.originalImage = gamejs.image.load("images/obstacle.png");
    // this.originalImage.getSize()
    // gamejs.transform.scale(...)
    //this.image = this.modifiedImage;
}

/**
 * Large-sized obstacle
 * @constant
 */
Obstacle.prototype.SIZE_BIG = 80;

/**
 * Mid-sized obstacle
 * @constant
 */
Obstacle.prototype.SIZE_MEDIUM = 60;

/**
 * Small-sized obstacle
 * @constant
 */
Obstacle.prototype.SIZE_SMALL = 40;

/**
 * Returns the vector of the center of the Obstacle
 *
 * @returns {array} The coordinates as vector [x, y]
 */
Obstacle.prototype.getCenter = function() { }

/**
 * Returns the radius of the Obstacle
 *
 * @returns {number} The radius of the Obstacle
 */
Obstacle.prototype.getRadius = function() { }